package com.fujitsu.cn.fnst.velocity.tool;

import java.util.List;

import org.apache.velocity.tools.config.DefaultKey;
import org.apache.velocity.tools.generic.SafeConfig;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.DependsOn;
import org.springframework.context.annotation.Scope;

import com.fujitsu.cn.fnst.entiy.MeetingBook;
import com.fujitsu.cn.fnst.service.MeetingBookService;

@Configurable("bookTool")
@DefaultKey("bookTool")
@Scope
@DependsOn
public class BookTool extends SafeConfig {
    private MeetingBookService meetingBookService;

    public MeetingBookService getMeetingBookService() {
        return meetingBookService;
    }

    public List<MeetingBook> getAllMeetingBooks() {
        return meetingBookService.getAllMeetingBooks();
    }
    public void setMeetingBookService(MeetingBookService meetingBookService) {
        this.meetingBookService = meetingBookService;
    }

}
